<!--
 * @Author: Tao
 * @Date: 2021-10-22 14:17:00
 * @LastEditors: Tao
 * @LastEditTime: 2021-10-25 16:13:37
 * @Description: 
-->
<template>
  <div class="infoComment">
    <el-table :data="infoComment.list">
      <el-table-column type="index" label="序号"></el-table-column>
      <el-table-column prop="comment" label="评论内容"></el-table-column>
      <el-table-column prop="userId" label="评论人编号"></el-table-column>
      <el-table-column prop="articleId" label="咨讯编号"></el-table-column>
      <el-table-column prop="commentTime" label="评论时间"></el-table-column>
      <el-table-column prop="status" label="评论状态"></el-table-column>
      <el-table-column label="操作"></el-table-column>
    </el-table>
  </div>
</template>
<script>
import request from "@/utils/request"
export default {
  data(){
    return{
      infoComment:[],
      queryParams:{
        page:1,
        pageSize:10
      }
    }
  },
  methods:{
    fillAllInfoComment(){
      request.get('/comment/pageQuery',{
        params:this.queryParams
      }).then(res => {
        console.log(res);
        this.infoComment = res.data; 
      })
    }
  }
}
</script>